package com.ruhaly.demo01.service;

import com.ruhaly.demo01.dao.UserMapper;
import com.ruhaly.demo01.entity.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource(name = "userMapper")
    UserMapper userMapper;

    public String login(String name, String pwd) {
        return "成功2";
    }

    public void saveUser(User user) {
        userMapper.insert(user);
    }

}
